-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Typescript Emby Components #7003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
* use class components instead of functions * use proper custom web elements * will this work on older platforms or does this require using the `webcomponents.js` package
Cloudflare Pages deployment
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
constructor() { | ||
super(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useless constructor. @typescript-eslint/no-useless-constructor
Suggestion(s) available:
constructor() { | |
super(); | |
} | |
labelElement.classList.add('show-focus'); | ||
} | ||
|
||
const labelTextElement = labelElement.querySelector('span')! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon. @stylistic/semi
Fix available:
const labelTextElement = labelElement.querySelector('span')! | |
const labelTextElement = labelElement.querySelector('span')!; |
https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements the examples always call they keycode deprecation has always been there. I didn't change that part |
use class components instead of functions
use proper custom web elements
will this work on older platforms or does this require using the
webcomponents.js
package